import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 添加分类
export function addType(data) {
  return request({
    url: '/system/case/category',
    method: 'POST',
    data: data
  })
}

// 修改分类
export function updateType(data) {
    return request({
      url: '/system/case/category',
      method: 'put',
      data: data
    })
}
  

// 查询分类
export function list(query) {
    return request({
      url: '/system/case/category/tree',
      method: 'get',
      query: query
    })
}
  

// 删除
export function delUserType(categoryIds) {
    return request({
      url: "/system/case/category/" + categoryIds,
      method: 'delete'
    })
  }

